import React, { Component } from 'react';
import "../styles/MySeckill.scss"

class MySeckill extends Component {
    constructor(props){
        super(props);
        this.state = {
            seckilllist: []
        }
    }
    render() {
        // console.log(this.props.seckilllist);
        return (
            <div className='myseckill'>
                {
                    this.props.seckilllist.map((item,index)=>{
                        return (
                            <div className="seck" key={index}>
                                <img src={item.pic} alt="" />
                                <div className="name">{item.name}</div>
                                <div className="price">原价 ￥302</div>
                                <span>抢购价 ￥195</span>
                            </div>
                        )
                    })
                }
            </div>
        );
    }
}

export default MySeckill;